package com.fire.market.order.impl;

import com.fire.market.gateway.api.dto.UserInfo;
import com.fire.market.gateway.api.service.UserQueryFrontService;
import com.fire.market.order.UserIntegrationService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * UserIntegrationServiceImpl
 *
 * @author zwd
 * @date 2021/7/21
 */
@Service
public class UserIntegrationServiceImpl implements UserIntegrationService {
    @Reference
    UserQueryFrontService userQueryFrontService;
    @Override
    public UserInfo queryUserInfo(Integer userId) {
        return userQueryFrontService.queryUserInfo(userId).getData();
    }
}
